<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="weaver.general.Util" %>
<%
    JSONObject jsonData = new JSONObject();
    RecordSet rs = new RecordSet();
    String id = Util.null2String(request.getParameter("id"));
    rs.executeQuery("select field0 from cus_fielddata where id=? and scopeid=3 and scope='HrmCustomFieldByInfoType'", id);
    rs.next();
    String field0 = Util.null2String(rs.getString(1));
    jsonData.put("field0", field0);
    out.print(jsonData.toJSONString());
%>
